﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;

namespace testReturnValue
{
    public class ComodityInfo
    {
        public string maxbidder;
        public decimal maxprice;
        public string  endtime;
        public  string cid;
    
    
    
    
    
    }




    /// <summary>
    /// Service1 的摘要说明
    /// </summary>
    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [System.ComponentModel.ToolboxItem(false)]
    // 若要允许使用 ASP.NET AJAX 从脚本中调用此 Web 服务，请取消对下行的注释。
    // [System.Web.Script.Services.ScriptService]
    public class Service1 : System.Web.Services.WebService
    {   
       






        [WebMethod]
        public string HelloWorld()
        {
            return "Hello World";
        }
        [WebMethod]
        public string getId(int i )
        {

            if (i % 2 == 1)
                return "奇数";
            else
                return "偶数";





        }
        [WebMethod]
        public ComodityInfo getinfo(string id)
        {
            ComodityInfo info = new ComodityInfo();
            info.cid = "11234";
            info.maxbidder = "da";
            info.maxprice = 14;
            info.endtime = "08-13-2012 12:12:11";

            return info;
        
        
        
        
        
        }




    }
}
